home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
c4
/
pro2
/
1n05047a
< prev
next >
Wrap
Text File
|
1990-09-06
|
197b
|
17 lines
unsigned long factorial(unsigned long n)
{
unsigned long result;
if (n > 1LU)
{
for (unsigned long x = 2LU; x <= n; ++x)
{
result *= x;
}
}
return result;
}